package com.yuhouxinliang.service.oss;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//(exclude = DataSourceAutoConfiguration.class)//取消数据源自动配置
//因为service的pom文件有含有mysql的相关配置,springboot默认配置了
// 所以当该启动类启动时,如果没有找到mysql的相关配置就无法启动,需要手动配置取消数据源自动配置
@ComponentScan({"com.yuhouxinliang"})
@EnableDiscoveryClient
public class ServiceOssApplication {

    public static void main(String[] args) {
        SpringApplication.run(ServiceOssApplication.class, args);
    }

}
